package org.airlink.persistence.criteria.expressions
{

	import flex.persistence.criteria.Subquery;
	
	import org.airlink.persistence.criteria.ExpressionImpl;
	import org.airlink.persistence.criteria.PredicateImpl;
	import org.airlink.persistence.criteria.SubQueryImpl;

	public class Exists extends PredicateImpl
	{
		private var query:SubQueryImpl;
		
		public function Exists(query:SubQueryImpl)
		{
			this.query = query;
		}
		
		override public function toString():String{
			return "exists" + this.query.asValue() + "";
		}
	}
}